home *** CD-ROM | disk | FTP | other *** search
/ Robotics & Artificial Int…3 (Professional Edition) / Robotics & Artificial Intelligence Tools 2003 (Professional Edition).iso / neural network tool and application / nsinstall.exe / data1.cab / Demos_Files / Genetic_Optimization / GA Final Example.nsm < prev    next >
Encoding:
Text File  |  2002-03-08  |  3.4 KB  |  79 lines

  1. NextMacroPath = macro. pathFromMacro ( "Summary.nsm" )
  2. nextButton. setMacroPath ( NextMacroPath )
  3. TextBoxPath = macro. pathFromMacro ( "TextBox.txt" )
  4. SubtitleIndex = subtitleTextBox. setTextFromFile (TextBoxPath, 5)
  5. MainIndex = mainTextBox. setTextFromFile (TextBoxPath, 5)
  6.  
  7. application. displayInspector ( FALSE )
  8. dataGraph. openEngineWindow ()
  9. dataGraph1. openEngineWindow ()
  10. matrixViewer. openEngineWindow ()
  11.  
  12. controlGenetic. setEnableGA ( FALSE )
  13.  
  14. file. setActiveFileNameAndDataSet ( "class_cv.txt" , "Cross Validation" )
  15. file. setActiveFileNameAndDataSet ( "class_train.txt" , "Training" )
  16. file. beginCustomizeOfActiveFile (  )
  17. file. setGeneticForActiveFile ( TRUE, 0 , 4 )
  18. file. setSkipForActiveFile ( 3 , 3 )
  19. file. setSkipForActiveFile ( 4 , 4 )
  20. file. endCustomizeOfActiveFile ( FALSE )
  21.  
  22. controlGenetic. setEnableGA ( FALSE )
  23. tanhAxon. setRows ( 15 )
  24. tanhAxon. setBeta ( 1.917400 )
  25. tanhAxon. setGeneticParameterActive ( 3 , TRUE )
  26. tanhAxon. setGeneticParameterUpperBound ( 3 , 15.000000 )
  27. tanhAxon. setGeneticParameterActive ( 6 , TRUE )
  28. tanhAxon. setGeneticParameterLowerBound ( 6 , 0.500000 )
  29. tanhAxon. setGeneticParameterUpperBound ( 6 , 1.500000 )
  30. tanhAxon. setGeneticParameterLowerBound ( 6 , 0.500000 )
  31.  
  32. fullSynapseBackpropGradient. setStepSize ( 1.391480 )
  33. fullSynapseBackpropGradient. setGeneticParameterActive ( 0 , TRUE )
  34. fullSynapseBackpropGradient. setGeneticParameterLowerBound ( 0 , 0.500000 )
  35. fullSynapseBackpropGradient. setGeneticParameterUpperBound ( 0 , 1.500000 )
  36.  
  37. tanhAxonBackpropGradient. setStepSize ( 1.361480 )
  38. tanhAxonBackpropGradient. setGeneticParameterActive ( 0 , TRUE )
  39. tanhAxonBackpropGradient. setGeneticParameterLowerBound ( 0 , 0.500000 )
  40. tanhAxonBackpropGradient. setGeneticParameterUpperBound ( 0 , 1.500000 )
  41.  
  42. fullSynapse1BackpropGradient. setStepSize ( 0.392280 )
  43. fullSynapse1BackpropGradient. setGeneticParameterActive ( 0 , TRUE )
  44. fullSynapse1BackpropGradient. setGeneticParameterLowerBound ( 0 , 0.500000 )
  45. fullSynapse1BackpropGradient. setGeneticParameterUpperBound ( 0 , 1.500000 )
  46.  
  47. tanhAxon1BackpropGradient. setStepSize ( 0.486260 )
  48. tanhAxon1BackpropGradient. setGeneticParameterActive ( 0 , TRUE )
  49. tanhAxon1BackpropGradient. setGeneticParameterLowerBound ( 0 , 0.500000 )
  50. tanhAxon1BackpropGradient. setGeneticParameterUpperBound ( 0 , 1.500000 )
  51.  
  52. tanhAxon1. setGeneticParameterActive ( 3 , TRUE )
  53. tanhAxon1. setGeneticParameterUpperBound ( 3 , 15.000000 )
  54. tanhAxon1. setGeneticParameterActive ( 6 , TRUE )
  55. tanhAxon1. setBeta ( 1.92352 )
  56. tanhAxon1. setRows ( 12 )
  57.  
  58. tanhAxon2BackpropGradient. setStepSize ( 0.11490 )
  59. tanhAxon2BackpropGradient. setMomentumRate ( 0.300000 )
  60.  
  61. fullSynapse2BackpropGradient. setStepSize ( 0.13298 )
  62. fullSynapse2BackpropGradient. setMomentumRate ( 0.300000 )
  63.  
  64.  
  65. activeBreadboard. setAnimatePoint ( 663 , 118 )
  66. activeBreadboard. stampAndMove ( "ButtonEngine" , "controlButton" )
  67. controlButton. setText ("Run")
  68. ControlMacroPath = macro. pathFromNS ( "Macros\reset&RunNetwork.nsm" )
  69. controlButton. setMacroPath ( ControlMacroPath )
  70. controlButton. setItalic ( TRUE )
  71. controlButton. setFontSize ( 18 )
  72. controlButton. setColor ( 255 , 0 , 0 )
  73.  
  74. dataGraph. setWindowTitle ( "Optimized MLP Learning Curve (Average Cost per Epoch)" )
  75. dataGraph1. setWindowTitle ( "% Correct Classification of Optimized MLP" )
  76. matrixViewer. setWindowTitle ( "Classification Performance of Optimized MLP" )
  77.  
  78. dataGraph. setShowLabels ( FALSE )
  79. dataGraph1. setShowLabels ( FALSE )